import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-demos',
  templateUrl: './demos.component.html',
  styleUrls: ['./demos.component.less']
})
export class DemosComponent implements OnInit {

  bars = [
    {title: '天', content: '天法地'},
    {title: '地', content: '地法人'},
    {title: '人', content: '人法道'}
  ]
  d1 = new Date() ;
  constructor() { }

  showIndex = 0
  ngOnInit(): void {
  }
  changedata(){
      this.showIndex++ ;
      this.bars.pop()
      this.bars[1].title = '上善若水' ;
    
  
  }

  bool = false ;
}
